<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>管理员论坛</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	 <link href="http://www.lagou.com/images/favicon.ico" rel="Shortcut Icon">
    <link href="style/css/style.css" type="text/css" rel="stylesheet">
    <link href="style/css/external.min.css" type="text/css" rel="stylesheet">
    <link href="style/css/popup.css" type="text/css" rel="stylesheet">
   
   <script type="text/javascript" src="js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script>
    <script type="text/javascript">
	function tijiao() {
			var neirong = editor.txt.html();//获取富文本区域里面的文字
			$('#nbody').val(neirong);
		}
	</script>
  </head>
  
  <body>
   <div id="body">
        <div id="header">
            <div class="wrapper">
                <a class="logo" href="index.html">
                    <img width="229" height="43" alt="拉勾招聘-专注互联网招聘" src="style/images/logo.png">
                </a>
                <ul id="navheader" class="reset">
                    <li><a href="ToIndexServlet">首页</a></li>
                    <li ><a href="company.jsp">企业版</a></li>
                    <li class="current"> <a target="_blank" href="ForumServlet?op=forum1">论坛</a></li>
                    <li><a href="ToManagerServlet?flag=1">返回管理界面</a></li>
                    
                </ul>
                <dl class="collapsible_menu" style="width: 90px">
					<dt>
						<span>拉勾管理员&nbsp;</span> <span class="red" id="noticeDot-0"></span>
						<i></i>
					</dt>

					<dd class="logout">
						<a rel="nofollow" href="login.jsp">返回</a>
					</dd>
				</dl>
            </div>
        </div><!-- end #header -->
        <div id="container">

				<div>
					<dl class="company_center_content">
						<dt>
							<h1>
								<em></em> 拉勾网论坛管理 <span></span>
							</h1>
						</dt>
						<dd>
							

								<!-- end .filter_actions -->
								<div class="filter_options  dn " style="display: none;">

									<input type="hidden" value="0" name="filterStatus"
										id="filterStatus"> <input type="hidden" value=""
										name="positionId" id="positionId">
								</div>
								<!-- end .filter_options -->
								<ul class="reset resumeLists">
									<li data-id="1686182" class="onlineResume">
									<div id="dyn">
									 <c:forEach items="${list}" var="l">
        <div style="width: 600px; height: 100px; margin: 30px auto; border-width: 0 0 1px 0; border-style: solid;
    border-color: #019875">
        <h3 style="font-weight: 700">${l.fname}</h3>
        <p>${l.ftext}</p>
        <span style="float:right">${l.ftime}<a href="ForumServlet?op=forum4&fid=${l.fid}&aa=${index}" onclick="aa()">删除</a></span>
        </div></c:forEach>
        
					 <div style="width: 600px;height: 50px; margin: 0 auto ">
               <div style=" margin-left: 130px">
                <input type="button" onclick="shou()" value="首页">
                <input type="button" onclick="shang(${index })" value="上一页" >
                <input type="button" onclick="xia(${index })" value="下一页" >
                <input type="button" onclick="wei()" value="尾页">
                <span>当前页数[${index }]&nbsp;&nbsp;总页数[${pagecount}]</span>
        </div>
        </div>	
        </div>			
									
									
									
								</li>
								</ul>
								<!-- end .resumeLists -->
							
						</dd>
					</dl>
					<!-- end .company_center_content -->
				</div>
				<!-- end .content -->


				<script src="style/js/jquery.ui.datetimepicker.min.js"
					type="text/javascript"></script>
				<script src="style/js/received_resumes.min.js"
					type="text/javascript"></script>
				<script>
					
				</script>
				<div class="clear"></div>
				<input type="hidden" value="b4bc225f0d084ee5b8d045f9c98a49ff"
					id="resubmitToken"> <a rel="nofollow" title="回到顶部"
					id="backtop"></a>
			</div>
       
       
        </div>
        <!-- <form action="ForumServlet?op=forum3" method="post">
        <div id="div1"></div> 
						<input type="hidden" id="nbody" name="nbody" />
						<script type="text/javascript">
							const E = window.wangEditor
							const editor = new E("#div1")
							editor.create()
						</script>
        <div style="width: 30px;height: 30px;margin: 30px auto;">
        <input type="submit" value="发送"  onclick="tijiao()" style="margin: 10px auto; font-size: 32px; background-color: #019875 ;color: #fff"/></div>
        </form></div> -->
        <script type="text/javascript">
       function aa() {
		alert("确认删除?");
	}
        
var i=${index};
//尾页直接给一个最大值首页直接给1传入
var j=99;
var k=1;
/* alert(i); */
function shou() {
		$.post("ForumServlet?op=forum2",{index:k+"/sy"},function(obj){		
			$("#dyn").html(obj);
	}) 
}
function wei() {
		$.post("ForumServlet?op=forum2",{index:j+"/wy"},function(obj){		
			$("#dyn").html(obj);
	}) 
}
function shang(i) {	
	//方法必须传值,也就是当前index
	$.post("ForumServlet?op=forum2",{index:i+"/s"},function(obj){		
		$("#dyn").html(obj);//传本页数字加字母到weiyeServlet判断
}) 
}
function xia(i) {
	//方法必须传值,也就是当前index
	 $.post("ForumServlet?op=forum2",{index:i+"/x"},function(obj){		
		$("#dyn").html(obj);
})  
}
</script>
        <div id="footer">
        
        
        
        
        
        
       <div class="wrapper">


			&copy;2013-2014 Lagou <a
				href="http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action"
				target="_blank">京ICP备14023790号-2</a>

		</div>
    </div>

   <!--  <script src="style/js/core.min.js" type="text/javascript"></script>
    <script src="style/js/popup.min.js" type="text/javascript"></script> -->

    <!--  -->


    <div id="cboxOverlay" style="display: none;"></div>
    <div id="colorbox" class="" role="dialog" tabindex="-1" style="display: none;">
        <div id="cboxWrapper">
            <div>
                <div id="cboxTopLeft" style="float: left;"></div>
                <div id="cboxTopCenter" style="float: left;"></div>
                <div id="cboxTopRight" style="float: left;"></div>
            </div>
            <div style="clear: left;">
                <div id="cboxMiddleLeft" style="float: left;"></div>
                <div id="cboxContent" style="float: left;">
                    <div id="cboxTitle" style="float: left;"></div>
                    <div id="cboxCurrent" style="float: left;"></div><button type="button"
                        id="cboxPrevious"></button><button type="button" id="cboxNext"></button><button
                        id="cboxSlideshow"></button>
                    <div id="cboxLoadingOverlay" style="float: left;"></div>
                    <div id="cboxLoadingGraphic" style="float: left;"></div>
                </div>
                <div id="cboxMiddleRight" style="float: left;"></div>
            </div>
            <div style="clear: left;">
                <div id="cboxBottomLeft" style="float: left;"></div>
                <div id="cboxBottomCenter" style="float: left;"></div>
                <div id="cboxBottomRight" style="float: left;"></div>
            </div>
        </div>
        <div style="position: absolute; width: 9999px; visibility: hidden; display: none;"></div>
    </div>
  </body>
</html>
